Skip to content

Fix Windows dissector install instructions#11

Open
tablackburn wants to merge 1 commit intochrisle:mainfrom
tablackburn:fix/windows-install-instructions
Open

Fix Windows dissector install instructions#11
tablackburn wants to merge 1 commit intochrisle:mainfrom
tablackburn:fix/windows-install-instructions

Conversation

@tablackburn
Copy link
Copy Markdown

@tablackburn tablackburn commented Mar 31, 2026

Summary

  • The %APPDATA%\Wireshark\plugins\ directory does not exist by default on Windows, so the current instructions fail
  • Added mkdir step to match the macOS/Linux instructions
  • Added separate commands for Command Prompt and PowerShell since %APPDATA% expansion differs between shells

Test plan

  • Verify Command Prompt instructions work on a fresh Windows install with Wireshark
  • Verify PowerShell instructions work on a fresh Windows install with Wireshark

🤖 Generated with Claude Code

The plugins directory does not exist by default on Windows. Updated the
Windows instructions to create it first (matching the macOS/Linux
instructions) and added commands for both Command Prompt and PowerShell
since %APPDATA% expansion differs between shells.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 31, 2026 00:35
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Windows Wireshark dissector installation docs so they work on fresh installs by creating the plugins directory and providing shell-specific commands.

Changes:

  • Add Command Prompt instructions that create %APPDATA%\Wireshark\plugins before copying
  • Add PowerShell equivalents using $env:APPDATA and New-Item
  • Replace the previous “copy to this path” text with executable command snippets

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +26 to +27
mkdir "%APPDATA%\Wireshark\plugins"
copy stagelinq.lua "%APPDATA%\Wireshark\plugins\"
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy will prompt on overwrite in some scenarios, and mkdir will emit an “already exists” message when re-running the instructions. Consider making the Command Prompt steps explicitly idempotent (e.g., guard the mkdir with if not exist ... and use copy /Y if overwriting is acceptable) to avoid interactive prompts and reduce confusion when users rerun the steps.

Suggested change
mkdir "%APPDATA%\Wireshark\plugins"
copy stagelinq.lua "%APPDATA%\Wireshark\plugins\"
if not exist "%APPDATA%\Wireshark\plugins" mkdir "%APPDATA%\Wireshark\plugins"
copy /Y stagelinq.lua "%APPDATA%\Wireshark\plugins\"

Copilot uses AI. Check for mistakes.
Comment on lines +32 to +33
New-Item -ItemType Directory -Force -Path "$env:APPDATA\Wireshark\plugins"
Copy-Item stagelinq.lua "$env:APPDATA\Wireshark\plugins\"
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New-Item will print an object to the console by default, which can be distracting in copy/paste instructions. Consider suppressing that output (e.g., piping to Out-Null) to keep the instructions cleaner; similarly, if overwriting an existing stagelinq.lua is expected, consider using Copy-Item -Force to avoid prompts/errors.

Suggested change
New-Item -ItemType Directory -Force -Path "$env:APPDATA\Wireshark\plugins"
Copy-Item stagelinq.lua "$env:APPDATA\Wireshark\plugins\"
New-Item -ItemType Directory -Force -Path "$env:APPDATA\Wireshark\plugins" | Out-Null
Copy-Item stagelinq.lua "$env:APPDATA\Wireshark\plugins\" -Force

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants